Skip to content

Allow created date to be set by the user when exporting STEP and FBX#804

Closed
alteous wants to merge 2 commits intoKittyCAD:mainfrom
alteous:step-user-created-date
Closed

Allow created date to be set by the user when exporting STEP and FBX#804
alteous wants to merge 2 commits intoKittyCAD:mainfrom
alteous:step-user-created-date

Conversation

@alteous
Copy link
Contributor

@alteous alteous commented Mar 12, 2025

No description provided.

@alteous alteous requested a review from jessfraz March 12, 2025 15:37
@alteous
Copy link
Contributor Author

alteous commented Mar 12, 2025

I assumed the datetime would be serializable. I'll send it as https://www.rfc-editor.org/rfc/rfc3339 instead.

@jessfraz
Copy link
Contributor

it is serializable, it will just work :)

@jessfraz
Copy link
Contributor

add chrono feature flag to the serde lib

@jessfraz
Copy link
Contributor

wait other way around add derive to chrono, idk you get what im saying its a flag somewhere

@jessfraz
Copy link
Contributor

@alteous alteous force-pushed the step-user-created-date branch from bde22cf to 34d0357 Compare March 12, 2025 16:03
@alteous alteous changed the title Allow created date to be set by the user when exporting STEP Allow created date to be set by the user when exporting STEP and FBX Mar 12, 2025

/// A wrapper for chrono types, since we need to impl Value for them.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Default)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Default, Deserialize, Serialize, JsonSchema)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need this equivalent here:

#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
    #[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
    ```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and i think the chrono flag on ts-rs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants